import { defineStore } from 'pinia';
import { ref } from 'vue';

const useToutiaoStore = defineStore('toutiao', () => {
  const channelId = ref(888)
  const updateChannelId = (newChannelId: number) => {
    channelId.value = newChannelId
  }
  return {
    channelId,
    updateChannelId
  }
})

export default useToutiaoStore